package com.gaoxizhe.ccc.service;

import com.gaoxizhe.ccc.dao.TestDao;
import com.gaoxizhe.ccc.model.TestEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName TestService
 * @Author Mr.Gao
 * @Date 2019/9/22 22:06
 * @Description TODO | 
 */
@Service
public class TestService {

    @Resource
    private TestDao testDao;

    public TestEntity testQuery(String id) {
        TestEntity testEntity = testDao.selectTest(id);
        return testEntity == null ? new TestEntity() : testEntity;
    }

}
